package com.keepsport.keepsportapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_activity")
@AllArgsConstructor
@NoArgsConstructor
public class Activity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    private Integer atid;
    private String title;
    private String imgurl;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sdate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date edate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ctime;
    private Integer flag;
    private String info;
    private Integer minlevel;//等级现在
    private Integer maxperson;//最大人数
}
